<?php

namespace App\Jobs;

use App\Facades\Site;
use Illuminate\Bus\Queueable;

abstract class Job
{
    /*
    |--------------------------------------------------------------------------
    | Queueable Jobs
    |--------------------------------------------------------------------------
    |
    | This job base class provides a central location to place any logic that
    | is shared across all of your jobs. The trait included with the class
    | provides access to the "onQueue" and "delay" queue helper methods.
    |
    */

    use Queueable;

    public function config(){
        config([
            'mail.host' => Site::get('MailHost'),
            'mail.port' => Site::get('MailPort'),
            'mail.from.address' => Site::get('MailAddress'),
            'mail.from.name' => Site::get('MailName'),
            'mail.username' => Site::get('MailUsername'),
            'mail.password' => Site::get('MailPassword'),
            'mail.encryption' => !empty(Site::get('MailEncryption'))?Site::get('MailEncryption'):'',
            'session.domain' => Site::get('Session_domain'),
        ]);
    }
}
